package com.huluobo.a2107kotlinshopping.demo

import androidx.room.Database
import androidx.room.RoomDatabase

/**
 *  Created by LC on 2023/11/14.
 *  3.创建数据库抽连累
 *  在room数据库中 Dao(接口)和数据库(抽两类)都不需要实现
 *  需要有个抽象方法获取Dao
 */
@Database(entities = [User::class], version = 1, exportSchema = false)
abstract class UserDatabase : RoomDatabase() {
    abstract fun getUserDao(): UserDao
}